<?php


namespace app\common\validate;


use think\Validate;

class Check extends Validate
{
    protected $rule=[
        'phone|手机/账号' => 'require|length:11|regex:/^[1][3456789][0-9]{9}$/',
        'name|姓名' => 'require|max:25',
    ];
    protected $message=[
        'phone.require'             =>  '手机必须填写',
        'phone.regex'               =>  '联系电话格式不正确',
        'phone.unique'              =>  '联系电话重复',
        'password.require'          =>  '密码不能为空',
        'password.regex'            =>  '密码任意字母数字下划线6-16位',

    ];


}